/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Negocio;
 import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
 *
 * @author sistemas
 */
public class LeerFichero {
   
public static void main(String[] args) {
		File f = new File("fichero.txt");
		Scanner s;
		try {
			s = new Scanner(f);
			while (s.hasNextLine()) {
				String linea = s.nextLine();
				Scanner sl = new Scanner(linea);
				sl.useDelimiter("\\s*,\\s*,\\s*,\\s*,\\s*,\\s*");
				System.out.println(sl.next());
				System.out.println(sl.next());
				System.out.println(sl.next());
                                System.out.println(sl.next());
                                System.out.println(sl.next());
                                System.out.println(sl.next());
                                System.out.println(sl.next());
			}
			s.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}


}
